import httpProxy from "../utils/request"; // 拿到我们刚封装的axios
import { URL } from "../config"; // 根据环境变量拿到的域名服务地址
import { AlwaysDepth } from "three";

// export async function getModels(data: Record<string, any>) {
//   return await httpProxy({
//     url: URL + "/common/model/model/page",
//     method: "POST",
//     data,
//   });
// }

/**
// 拿到svg验证码
 * @param h 高度
 * @param w 宽度
 * @param C 颜色
 */
// export async function getSvgverify(h, w) {
//   return await httpProxy({
//     url: 'http://1.116.178.22' + `/rcs-backend/admin/base/open/captcha?height=${h}&width=${w}&color=%23000000`,
//     method: "GET"
//   })
// }

/**
 * 登录
 */
// export async function loginIN(data) {
//   return await httpProxy({
//     url: 'http://1.116.178.22' + `/rcs-backend/admin/base/open/login`,
//     method: "POST",
//     data,
//   })
// }

// export async function refreshToken(params) {
//   return await httpProxy({
//     url: 'http://1.116.178.22' + `/rcs-backend/admin/base/open/refreshToken`,
//     method: "GET",
//     params,
//   })
// }

/**
 * 获取事件列表
 */
// export async function alarmInfo(data) {
//   return await httpProxy({
//     url: 'http://1.116.178.22' + `/rcs-backend/admin/alarm/info/page`,
//     method: "POST",
//     data,
//   })
// }

/**
 * 设备列表
 */
// export async function Iotdevice(data) {
//   return await httpProxy({
//     url: 'http://1.116.178.22' + `/rcs-backend/admin/iot/device/page`,
//     method: "POST",
//     data,
//   })
// }

/**
 * 获取经办人
 */
// export async function getbackend(data) {
//   return await httpProxy({
//     url: 'http://1.116.178.22' + `/rcs-backend/admin/base/sys/user/page`,
//     method: "POST",
//     data,
//   })
// }

/**
 * 新增报警
 */
// export async function infoAdd(data){
//   return await httpProxy({
//     url:URL + `/rcs-backend/admin/alarm/info/add`,
//     method:"POST",
//     data,
//   })
// }

/**
 * 黄纯教授接口
 */
export async function huangBackend(data) {
  return await httpProxy({
    url: URL + `/huang-backend/common/dict/info/data`,
    method: "POST",
    data
  })
}

/**
 * 获取政府单位名称
 */
export async function huangDick(data) {
  return await httpProxy({
    url: URL + `/huang-backend/common/dict/info/data`,
    method: "POST",
    data
  })
}

/**
 * 获取政府咨询名称
 */
export async function huangInfor(data) {
  return await httpProxy({
    url: URL + `/huang-backend/common/dict/info/data`,
    method: "POST",
    data
  })
}

/**
 * 政府公司图片
 */
export async function governPic(data) {
  return await httpProxy({
    url: URL + `/huang-backend/common/dict/info/data`,
    method: "POST",
    data
  })
}


/**
 * 企业公司图片
 */
export async function enterprisePic(data) {
  return await httpProxy({
    url: URL + `/huang-backend/common/dict/info/data`,
    method: "POST",
    data
  })
}

/**
 * 获取地图数据
 */
export async function getMap(data) {
  return await httpProxy({
    url: URL + `/huang-backend/common/dict/info/data`,
    method: "POST",
    data
  })
}

